//
//  CMNavBarAppDelegate.h
//  CMNavBar
//
//  Created by Chaiyasit Tayabovorn on 2/23/11.
//  Copyright 2011 CodeMobiles Co.,Ltd. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FMDatabase.h"
#import "FMDatabaseAdditions.h"
#import "food.h"
#import "exercise.h"

@interface CMNavBarAppDelegate : NSObject <UIApplicationDelegate> {
    
    UIWindow *window;
    UINavigationController *navigationController;
    
    NSMutableArray *cars;
    FMDatabase *db;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UINavigationController *navigationController;

@property (nonatomic, retain) NSMutableArray *cars;
@property (assign) BOOL isDBReady;
//@property (nonatomic, retain) NSMutableArray *dataFromDatabase;



-(NSMutableArray *)getProjects;
-(BOOL)deleteA:(NSInteger)idDelete;

-(BOOL)saveProjects:(food *)project;



-(BOOL)openProject:(food *)food;
-(BOOL)closedProject:(food *)food;

-(BOOL)deleteProject:(food *)food;



@end



